#include("../../comm/FormHead.html")
<div id="main">
    <form action="" class="layui-form margin-10" lay-filter="form">
        <input type="hidden" id="actions" name="actions" value="#(form.actions)">

        #(token??)

        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">岗位ID</label>

                    <div class="layui-input-block">
                        <input type="text" name="post_id" readonly placeholder="自动生成"
                               value="#(post.post_id)" class="layui-input input-readonly">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">岗位名称</label>

                    <div class="layui-input-block" style="width:300px">
                        <input type="text" name="post_name" placeholder="请输入岗位名称"
                               value="#(post.post_name)" class="layui-input ">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">显示顺序</label>

                    <div class="layui-input-block" style="width:120px">
                        <input type="text" name="sindex" placeholder="请输入显示顺序"
                               value="#(post.sindex)" class="layui-input ">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-form-item">
                    <label class="layui-form-label">岗位描述</label>

                    <div class="layui-input-block">
                        <textarea name="post_desc" placeholder="请输入岗位描述" class="layui-textarea" style="height:180px">#(post.post_desc)</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="Submit1">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<SCRIPT LANGUAGE="JavaScript">
    <!--

    layui.use(['myNumber', 'myUpload', 'myColor', 'myIcon'], function () {
        layui.myNumber.render({readonly: true, min: 1, max: 5, step: 2});
        layui.myUpload.render({btn_class: "layui-btn-sm btn-change-13", btn_txt: '上传'});
        layui.myColor.render({});
        layui.myIcon.render({});
    });
    layui.use(['form', 'myTool'], function () {
        layui.form.on('submit(Submit1)', function (data) {
            layui.myTool.postJson("ModifySysPostApi", data.field, function () {
                parent.layer.closeAll();
            });
            return false;
        });
    });
    //-->
</SCRIPT>
</body>
</html>